/* ====================================================== 
   Source Code        
/* ====================================================== */
/* Pretty printing styles. Used with prettify.js. */
/* Vim sunburst theme by David Leibovic */

pre .str, code .str { color: #65B042; } /* string  - green */
pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
pre .typ, code .typ { color: #89bdff; } /* type - light blue */
pre .lit, code .lit { color: #3387CC; } /* literal - blue */
pre .pun, code .pun { color: #fff; } /* punctuation - white */
pre .pln, code .pln { color: #fff; } /* plaintext - white */
pre .tag, code .tag { color: #89bdff; } /* html/xml tag    - light blue */
pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name  - khaki */
pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
pre .dec, code .dec { color: #3387CC; } /* decimal - blue */

pre.prettyprint, code.prettyprint {
	background-color: #000;
	border-radius: 8px;
}

pre.prettyprint {
	width: 95%;
	margin: 1em auto;
	padding: 1em;
	white-space: pre-wrap;
}


/* Specify class=linenums on a pre to get line numbering */
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
/* Alternate shading for lines */
li.L1,li.L3,li.L5,li.L7,li.L9 { }

@media print {
  pre .str, code .str { color: #060; }
  pre .kwd, code .kwd { color: #006; font-weight: bold; }
  pre .com, code .com { color: #600; font-style: italic; }
  pre .typ, code .typ { color: #404; font-weight: bold; }
  pre .lit, code .lit { color: #044; }
  pre .pun, code .pun { color: #440; }
  pre .pln, code .pln { color: #000; }
  pre .tag, code .tag { color: #006; font-weight: bold; }
  pre .atn, code .atn { color: #404; }
  pre .atv, code .atv { color: #060; }
}


/* Source Code Button */
#view-source {
	position: fixed;
	background: #fff;
	z-index: 99997;
	top: calc(50% - 18px);
	right: 20px;
	margin: auto;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid $highlight-color1;
	border-radius: 25px;
	height: 2rem;
	width: 2rem;
	font-size: 0.75rem;
	padding: 0;
	outline: none;
	overflow: hidden;
	color: $highlight-color1;
	transition: .1s ease-in-out;
	text-align: center;
	line-height: 250%;
	box-shadow: 0 4px 15px 0 rgba(236, 94, 121, 0.35);
	
	i {
	    font-size: 1rem;
	}
	&::before {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		margin: auto;
		content: '';
		border-radius: 50%;
		display: block;
		width: 4rem;
		height: 4rem;
		line-height: 4rem;
		left: -1rem;
		text-align: center;
		transition: box-shadow .3s ease-out;
		z-index: -1;
	}
	&:hover {
		color: #fff;
		box-shadow: 0 4px 15px 0 rgba(236, 94, 121, 0.75);
		
		&::before {
			box-shadow: inset 0 0 0 4rem $highlight-color1;
		}
	}
}

@media all and (max-width: 768px) {
	#view-source { 
	    display: none;
	}
	
}


/* Source Code Area */
#source-code {
	display: none;
	position: fixed;
	z-index: 99997;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	&:target {
	    display: block;
	}
	pre {
		padding: 20px;
		font: 14px/1.6 Monaco, Courier, MonoSpace;
		margin: 50px auto;
		background: rgba(0, 0, 0, 1);
		color: white;
		width: 80%;
		height: 80%;
		overflow: auto;
		
		a {
			text-decoration: none;
			color: #00ccff !important;

			span {
				text-decoration: none;
				color: #00ccff !important;
			}
		}
	}
	
	#close {
		position: absolute;
		top: 30px;
		left: 10%;
		margin-left: -18px;
		box-shadow: 2.5px 4.33px 16px 0px rgba(204, 23, 30, 0.31);
		border-radius: 50%;
		background: #cc171e;
		width: 36px;
		height: 36px;
		display: inline-block;
		text-align: center;
		line-height: 34px;
		overflow: hidden;
		transform: rotate(45deg);
		text-decoration: none;
	}
	.prettyprint {
		border-radius: 2px;
		box-shadow: 0px 0px 28px -4px rgba(0, 0, 0, 0.62);
		
		&::-webkit-scrollbar-track {
			border-radius: 0px;
			background-color: #F1F1F1;
		}
		&::-webkit-scrollbar {
			width: 5px;
			height: 5px;
			background-color: #F5F5F5;
		}
		&::-webkit-scrollbar-thumb {
			border-radius: 0px;
			background-color: #000;
		}
	}
	
	#close:after {
		font-family: 'FontAwesome';
		content: "\f067";
		color: #fff;
		font-size: 1rem;
	}
}


